﻿namespace Arms.Presentation.Web.Common
{
    using System;
    using System.Text;
    using System.Web.Mvc;
    using Arms.Framework;

    public static class HtmlHelperExtensions
    {
        public static MvcHtmlString BreadCrumb(this HtmlHelper htmlHelper)
        {
            throw new NotImplementedException();
        }

        private static string GetBreadCrumbString(bool isFirst, string action, string controller, string area, string value)
        {
            string link = string.Format("{0}/{1}/{2}", area, controller, action); 
            string div = "<div class=\"breadcrumb-button {0}\"><span class=\"breadcrumb-label\"><a href=\"{2}\"><i class=\"icon-{1}\"></i>{3}</a></span><span class=\"breadcrumb-arrow\"><span></span></span></div>";
            string color = isFirst ? "blue" : "";
            string icon = isFirst ? "home" : "beaker";
            return string.Format(div, color, icon, link, value);
        }
    }
}
